/**
 * 用户相关api
 */

import { http } from '@/utils/request/servs.js'

/**
 * App登录注册
 * @param {data} parent_id - 上級邀請人 必填 默认 0 没有上级
 * @param {data} account - 手机号
 * @param {data} password - 密码
 */
export const login = (data) => {
  return http.post('/user/login', {...data})
}
export const info = () => {
  return http.get('/user/info')
}
export const logout = () => {
  return http.post('/user/logout')
}
export const customer = (data) => {
  return http.get('/user/customer?'+data)
}